cask "magic-launch" do
  version "1.4.3"
  sha256 "f209f58e22c5881dc226b294181cc324a9e446425548b5de35c6f26bab1c7a4d"

  url "https://www.oneperiodic.com/files/Magic%20Launch%20v#{version}.zip"
  name "Magic Launch"
  homepage "https://www.oneperiodic.com/products/magiclaunch/"

  livecheck do
    url :homepage
    strategy :page_match
    regex(%r{href=.*?/Magic%20Launch%20v?(\d+(?:\.\d+)*)\.zip}i)
  end

  prefpane "Magic Launch.prefPane"

  zap trash: "~/Library/Preferences/com.metakine.magic-launch.agent.plist"
end
